package com.example.sxt_practise.算法刷题;

import java.util.Arrays;
import java.util.Scanner;

/**
 * @author gaofeng
 * date 2022年03月15日 22:18
 */
public class Test5 {
    public static void main(String[] args) {
        System.out.println("输入:");
        Scanner scanner = new Scanner(System.in);
        int n = scanner.nextInt() ;
        String[] strings = new String[n] ;
        for (int i = 0; i < n; i++) {
            strings[i] = scanner.next();
        }
        Arrays.sort(strings) ;
        for (String string : strings) {
            System.out.println(string);
        }
    }
}
